<?php
//微信用户
$this->group(['domain' => env('DOMAIN_ADMIN'),'prefix' => '/wechat/function/customer/'], function() {
	$this->get('view/{id}', 'Fun\CustomerController@getOne')->where('id','[0-9]+');
	//获取客服开启状态
	$this->get('view/switch', 'Fun\CustomerController@getSwitch');
	//获取菜单列表
    $this->get('view/list', 'Fun\CustomerController@getLists');
    //唯一验证
	$this->get('view/check/unique/account', 'Fun\CustomerController@checkUniqueAccount');
	//更新
	$this->post('update', 'Fun\CustomerController@postUpdate');
	//客服绑定
	$this->post('update/invite', 'Fun\CustomerController@postInvite');
	//客服同步
	$this->post('update/sync', 'Fun\CustomerController@postSync');
	//客服开关
	$this->post('update/switch', 'Fun\CustomerController@postSwitch');
	
	$this->delete('delete/{id}', 'Fun\CustomerController@deleteCustomer')->where('id','[0-9]+');
});